import request from '@/utils/request'

// 管理员列表
export function getList(params?: any) {
  return request({
    url: '/supplier/admin_list',
    method: 'get',
    params,
  })
}

// 获取所有用户
export function getInterviewerList(params?: any) {
  return request({
    url: '/supplier/interviewerList',
    method: 'get',
    params,
  })
}

// 删除管理员
export function doDelete(data: any) {
  return request({
    url: '/supplier/del_admin',
    method: 'post',
    data,
  })
}

// 新增管理用户
export function doAdd(data: any) {
  return request({
    url: '/supplier/add_admin',
    method: 'post',
    data,
  })
}

// 编辑管理用户
export function doEdit(data: any) {
  return request({
    url: '/supplier/edit_admin',
    method: 'post',
    data,
  })
}

// 重置密码
export function resetPassword(data: any) {
  return request({
    url: '/supplier/reset_password',
    method: 'post',
    data,
  })
}

// 日志列表
export function getLogList(params: any) {
  return request({
    url: '/supplier/log/list',
    method: 'get',
    params,
  })
}